package video.dali.mapper;


import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import video.dali.common.dto.CategoryPageDto;
import video.dali.common.entity.Category;

@Mapper
public interface CategoryMapper {

    /**
     * 查询所有视频分类
     * @param categoryPageDto
     * @return
     */
    @Select("select * from category")
    Page<Category> list(CategoryPageDto categoryPageDto);
}
